package no.sachmuld.methodcombination.examples.annotation.combo.courier;

import no.sachmuld.methodcombination.api.MethodInvocation;

/**
 *
 */
public class ExpressDelivery extends CourierBehaviour {

    @Override
    public Delivery aroundDeliver(Package pkg, MethodInvocation<Delivery> methodInvocation) {
        Delivery ordinary = methodInvocation.proceed();
        return new Delivery(ordinary.getDeliveryTimeInHours()/2);
    }
}
